package com.atguigu.webapp.service.impl;

import com.atguigu.model.pojo.PaymentType;
import com.atguigu.webapp.mapper.PaymentTypeMapper;
import com.atguigu.webapp.service.PaymentTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author 梅超凡
 * @Date 2024/11/12~21:49
 * @Description 针对表【payment_type(支付方式表)】的数据库操作Service实现
*/
@Service
@Slf4j
public class PaymentTypeServiceImpl extends ServiceImpl<PaymentTypeMapper, PaymentType>
    implements PaymentTypeService{


    @Autowired
    private PaymentTypeMapper paymentTypeMapper;

    @Override
    public List<PaymentType> selectListByRoomId(Long id) {
        List<PaymentType> typeList = paymentTypeMapper.selectListByRoomId(id);
        log.info("查询结果:{}",typeList);
        return typeList;
    }
}




